<!DOCTYPE html>
<style>
@font-face {
    font-family: webkit-ahem;
    src: url(../../resources/Ahem.ttf) format(truetype);
}
@font-face {
    font-family: default foo;
    src: url(../../resources/Ahem.ttf) format(truetype);
}
@font-face {
    font-family: bar default;
    src: url(../../resources/Ahem.ttf) format(truetype);
}
</style>
<body>
    <p>
        http://crbug.com/226632 - CSSParser::parseFontFamily should allow
        the keyword "default" as part of a font name.
        http://crbug.com/389148 - Invalid declaration "font-family: Times,
        inherit" is treated as valid.
    </p>
    <p>
        The next 11 lines should use the default font (same as this line):<br>
        Test 1<br>
        <span style="font-family: default">Test 2</span><br>
        <span style="font-family: default, invalid">Test 3</span><br>
        <span style="font-family: invalid, default">Test 4</span><br>
        <span style="font-family: default, arial">Test 5</span><br>
        <span style="font-family: arial, default">Test 6</span><br>
        <span style="font-family: invalid, default, arial">Test 7</span><br>
        <span style="font-family: arial, inherit">Test 8</span><br>
        <span style="font-family: arial, initial">Test 9</span><br>
        <span style="font-family: arial, unset">Test 10</span>
    </p>
    <p>
        The next 3 lines should use the font Arial:<br>
        <span style="font-family: arial">Test 1</span><br>
        <span style="font-family: default foobar, arial">Test 2</span><br>
        <span style="font-family: arial, default foobar">Test 3</span>
    </p>
    <p>
        The next 9 lines should use the font Ahem (black boxes):<br>
        <span style="font-family: webkit-ahem">Test 1</span><br>
        <span style="font-family: default foo">Test 2</span><br>
        <span style="font-family: default foo, invalid">Test 3</span><br>
        <span style="font-family: invalid, default foo">Test 4</span><br>
        <span style="font-family: invalid, default foo, foobar">Test 5</span><br>
        <span style="font-family: bar default">Test 6</span><br>
        <span style="font-family: bar default, invalid">Test 7</span><br>
        <span style="font-family: invalid, bar default">Test 8</span><br>
        <span style="font-family: invalid, bar default, foobar">Test 9</span>
    </p>
</body>
</html>
